package cn.lizemin.Iterator.version0;

import cn.lizemin.Iterator.version0.entity.DrivingRecorder;
import cn.lizemin.Iterator.version0.entity.Iterator;

/**
 * @author lzm
 * @version 1.0
 * @description:
 * @date 2022/5/3 11:46
 */
public class Client {
    /**
     * 程序的入口
     */
    public static void main(String[] args) {
        DrivingRecorder recorder = new DrivingRecorder();
        //记录12条视频
        for (int i = 1; i <= 12; i++) {
            recorder.appendRecords("视频——" + i);
        }

        System.out.println("--------按顺序从新到旧展示---------");
        Iterator it = recorder.iterator();
        while (it.hasNext()) {
            System.out.println(it.next());
        }


    }

}
